lcm and hcf aptitude problems